<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML>
<html lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>新增教师</title>
<c:import url="/WEB-INF/jsp/head.jsp" />
<script type="text/javascript" src="static/js/teacher/add.js"></script>
</head>
<body>
	<div class="default-theme container-fluid iframe">
		<div class="col-md-8">
			<form class="form-horizontal" action="teacher/add" method="post">
				<div class="form-group">
					<label for="account" class="col-sm-2 control-label"><i
						class="text-danger">*</i> 账号名称</label>
					<div class="col-sm-10">
						<input type="text" class="form-control" name="account"
							placeholder="账号名称">
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">账号密码</label>
					<div class="col-sm-10">
						<input type="text" class="form-control has-error"
							value="注册后密码默认为12345, 请登陆后及时修改" readonly="readonly"
							placeholder="账号密码">
					</div>
				</div>
				<div class="form-group">
					<label for="teacherName" class="col-sm-2 control-label"><i
						class="text-danger">*</i> 教师名称</label>
					<div class="col-sm-10">
						<input type="text" class="form-control" name="name"
							placeholder="教师名称">
					</div>
				</div>
				<div class="form-group">
					<label for="tel" class="col-sm-2 control-label"><i
						class="text-danger">*</i> 教师类型</label>
					<div class="col-sm-10">
						<select class="form-control" name="type.value">
							<c:forEach items="${types }" var="type">
								<option value="${type.value }">${type.name }</option>
							</c:forEach>
						</select>
					</div>
				</div>
				<div class="form-group">
					<label for="tel" class="col-sm-2 control-label">联系电话</label>
					<div class="col-sm-10">
						<input type="text" class="form-control" name="tel"
							placeholder="联系电话">
					</div>
				</div>
				<div class="form-group">
					<label for="email" class="col-sm-2 control-label">电子邮箱</label>
					<div class="col-sm-10">
						<input type="text" class="form-control" name="email"
							placeholder="电子邮箱">
					</div>
				</div>
				<div class="form-group">
					<label for="remarks" class="col-sm-2 control-label">备注</label>
					<div class="col-sm-10">
						<textarea class="form-control" name="remarks" placeholder="备注"></textarea>
					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-offset-2 col-sm-10">
						<button type="submit" class="btn btn-primary">提交</button>
						<!-- <a href="javascript:history.back();" class="btn btn-default">返回</a> -->
					</div>
				</div>
			</form>
		</div>
	</div>
</body>
</html>